Java.perform(function () {
    var MiscUtil = Java.use("com.yoloho.libcore.util.MiscUtil");

    MiscUtil.isRooted.implementation = function () {
        return false;
    }

    MiscUtil.isSimulator.implementation = function (ctx) {
        return false;
    }

    var SystemManager = Java.use("com.mobile.auth.gatewayauth.manager.SystemManager");
    SystemManager.checkEnvSafe.implementation = function () {
        return null;
    }

});
// frida -H 127.0.0.1:8877 -l  1_Root_isDeviceRooted_Remove.js -f com.yoloho.dayima
// frida -U -f  com.yoloho.dayima -l  2.root.js     这是spawn的方式启动
// frida -UF -l  2.root.js